package com.weixing.mall.provider.model.dto.cms;

import com.weixing.mall.provider.model.enums.AreaLevelEunm;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;

/**
 * @ClassName CityAreaDto
 * @Description TODO <br/>
 * @Author gjq
 * @Modified By:
 * @Date 2019/7/26
 * @Version 1.0
 **/
@Data
@ApiModel(description = "行政区划")
public class CityAreaDto {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "名称")
    @NotNull(message = "名称不能为空")
    private String areaName;

    @ApiModelProperty(value = "编码")
    @NotNull(message = "编码不能为空")
    private String areaCode;

    @ApiModelProperty(value = "级别 1省级；2市级；3县级；4乡镇街道")
    @NotNull(message = "级别不能为空")
    private AreaLevelEunm areaLevel;

    @ApiModelProperty(value = "邮编")
    @NotNull(message = "邮编不能为空")
    private String zipCode;

    @ApiModelProperty(value = "父编码")
    @NotNull(message = "父编码不能为空")
    private String parentCode;

    @ApiModelProperty(value = "层级定位")
    @NotNull(message = "层级定位不能为空")
    private String areaPath;
}
